var React=require('react');
var Showdown=require('showdown');

//var converter=new Showdown.converter();
var Comment=React.createClass({
   render:function(){
       var rawMarkup = Showdown.converter.makeHtml(this.props.children.toString());
       return (
           <div className="comment">
           <h2 className="commentAuthor">{this.props.author}</h2>
           <span dangerouslySetInnerHtml={{__html:rawMarkup}} />
           </div>
        );
   }
});